Skip to content

Instantly share code, notes, and snippets.

@markasoftware
markasoftware / enterprise_token.rb
Last active September 11, 2026 10:47
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@frectonz
frectonz / safaricom-mx0268-router-api.md
Created May 12, 2026 14:59
Use this skill to talk to the Safaricom MX0268 mobile router (marketed as "Safaricom Kimem MIFI", hardware is a ZTE M30S Pro). Covers login, reading state, listing connected devices, sending SMS, navigating USSD menus, the protocol's quirks, and a security model overview. Trigger when the user mentions a router admin panel at 192.168.0.1 / Serve…
name safaricom-mx0268-router-api
description Use this skill to talk to the Safaricom MX0268 mobile router (marketed as "Safaricom Kimem MIFI", hardware is a ZTE M30S Pro). Covers login, reading state, listing connected devices, sending SMS, navigating USSD menus, the protocol's quirks, and a security model overview. Trigger when the user mentions a router admin panel at 192.168.0.1 / Server header "Demo-Webs", or asks about endpoints `/reqproc/proc_get` / `/reqproc/proc_post`, or goformId values like LOGIN / SEND_SMS / USSD_PROCESS, or device names "Kimem" or "M30S Pro".

Safaricom MX0268 Router API

A field-tested guide to the HTTP API behind the Vue admin panel of the Safaricom MX0268 (marketed as the "Safaricom Kimem MIFI", hardware is a ZTE M30S Pro) running the "Demo-Webs" embedded HTTP server. The firmware identifies itself via cmd=cr_version as CPE_M30SPRO_... and via tz_customer_code as MX0268. Everything below was reverse-engineered from the unpacked SPA bundle and verified agains

@pipethedev
pipethedev / go-deslop.md
Created September 7, 2026 13:10
Markdown file to de-slop your go codebase

Go Codebase Cleanup: Remove Defensive Over-Engineering and AI Slop

Audit this Go codebase and aggressively simplify AI-generated, defensive, overly abstract, or unnecessarily generic code.

The goal is to make the code look like it was written by an experienced Go engineer:

  • simple
  • explicit
  • strongly typed
  • boring
@fourlexboehm
fourlexboehm / gist:a60e4ef9306744483731cd176bd02e9f
Last active September 11, 2026 10:46
Minimal CLI Agent in C
// This is an entire CLI agent, it can do everything Claude code can do, using raw mode to support pasting, backspace,
// escape to cancel agents turn, and multiline prompts with Shift + enter,
// but with 2MB of RAM, neglibible CPU usage and one small C file.
// It is a single C file for the openai responses api, with no dependency other than libcurl, and an
// OPENAI_API_KEY env var.
// compile with `cc -lcurl -o cgent this_file.c` then install where you please.
// AI USAGE - This code was written without AI agents, largely to maintain my c skills, as such it is likely to have
// memory safety bugs.
#include <ctype.h>
@k16shikano
k16shikano / SKILL.md
Last active September 11, 2026 10:45
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@miladjahandideh
miladjahandideh / ovn-ovs-cheat-sheet.md
Last active September 11, 2026 10:43
Open vSwitch & OVN Command Cheat Sheet

Open vSwitch & OVN Command Cheat Sheet

Open vSwitch (OVS) Commands

Bridge Management

# List all bridges
ovs-vsctl show
@swetoast
swetoast / gist:32d382fc714f1bda0850bfe09d0cb09e
Last active September 11, 2026 10:39
ubuntu-ports mirrorlist
http://ftp.tu-chemnitz.de/pub/linux/ubuntu-ports
http://ports.ubuntu.com/ubuntu-ports
https://mirror.kumi.systems/ubuntu-ports
https://mirrors.aliyun.com/ubuntu-ports/
http://mirrors.mit.edu/ubuntu-ports/
https://ftp.ubuntu-tw.org/mirror/ubuntu-ports/
https://mirror.yandex.ru/ubuntu-ports/
https://mirror.scaleuptech.com/ubuntu-ports/
https://mirrors.ustc.edu.cn/ubuntu-ports/
https://mirror.csclub.uwaterloo.ca/ubuntu-ports/
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active September 11, 2026 10:35
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여